package com.cn.bean;

public class Worker {
    //员工编号
    private int workerID;
    //员工姓名
    private String workerName;
    //员工工号
    private String workerNumber;
    //员工性别
    private String workerSex;
    //所在部门岗位
    private String dept;
    //部门ID
    private int departmentID;
    //部门名称
    private String departmentName;
    //家庭住址
    private String workerAddress;

    public Worker() {
        super();
    }

    public Worker(int workerID, String workerName, String workerNumber, String workerSex, String dept, int departmentID, String workerAddress) {
        super();
        this.workerID = workerID;
        this.workerName = workerName;
        this.workerNumber = workerNumber;
        this.workerSex = workerSex;
        this.dept = dept;
        this.departmentID = departmentID;
        this.workerAddress = workerAddress;
    }

    public Worker(String workerName, String workerNumber, String workerSex, String dept, int departmentID,String workerAddress) {
        super();
        this.workerName = workerName;
        this.workerNumber = workerNumber;
        this.workerSex = workerSex;
        this.dept = dept;
        this.departmentID = departmentID;
        this.workerAddress = workerAddress;
    }

    public Worker(String workerName, String workerNumber, int departmentID) {
        super();
        this.workerName = workerName;
        this.workerNumber = workerNumber;
        this.departmentID = departmentID;
    }

    public int getWorkerID() {
        return workerID;
    }

    public void setWorkerID(int workerID) {
        this.workerID = workerID;
    }

    public String getWorkerName() {
        return workerName;
    }

    public void setWorkerName(String workerName) {
        this.workerName = workerName;
    }

    public String getWorkerNumber() {
        return workerNumber;
    }

    public void setWorkerNumber(String workerNumber) {
        this.workerNumber = workerNumber;
    }

    public String getWorkerSex() {
        return workerSex;
    }

    public void setWorkerSex(String workerSex) {
        this.workerSex = workerSex;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    public int getDepartmentID() {
        return departmentID;
    }

    public void setDepartmentID(int departmentID) {
        this.departmentID = departmentID;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getWorkerAddress() {
        return workerAddress;
    }

    public void setWorkerAddress(String workerAddress) {
        this.workerAddress = workerAddress;
    }

    @Override
    public String toString() {
        return "Worker{" +
                "workerID=" + workerID +
                ", workerName='" + workerName + '\'' +
                ", workerNumber='" + workerNumber + '\'' +
                ", workerSex='" + workerSex + '\'' +
                ", dept='" + dept + '\'' +
                ", departmentID=" + departmentID +
                ", departmentName='" + departmentName + '\'' +
                ", workerAddress='" + workerAddress + '\'' +
                '}';
    }
}
